<?php
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="global.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../getfiles.php?t=js&v={$_SYS['VERSION']}&f=util|ajax|tab"></script>
</head>
<body>
<div id="smalltab_container"></div>
<div class="smalltab_line"></div>
	<div id="t1"></div>
	<div id="t2"></div>
	<div id="t3"></div>
	<div id="t4"></div>
<script>
var smallNowTab;
var pt = new Tabs();
pt.classpre="smalltab_";
pt.container = "smalltab_container";
pt.createTab("t1","新帖","",true,"n");
pt.createTab("t2","热门","",false,"n");
pt.createTab("t3","排行","",false,"n");
pt.createTab("t4","动静","",false,"n");
pt.init = function(){
	smallNowTab = pt.nowTab;
};
pt.onclick = function(){
	smallNowTab = pt.nowTab;
	switch(pt.nowTab){
		case "t1":
			if(E("t1").innerHTML==''){
				E("t1").innerHTML='<img src="../../images/loading.gif" border="0" />'
				ajaxGet("ajax.php?action=new",t1_callback);
			}
		break;
		case "t2":
			if(E("t2").innerHTML==''){
				E("t2").innerHTML='<img src="../../images/loading.gif" border="0" />'
				ajaxGet("ajax.php?action=hot",t2_callback);
			}
		break;
		case "t3":
			if(E("t3").innerHTML==''){
				E("t3").innerHTML='<img src="../../images/loading.gif" border="0" />'
				ajaxGet("ajax.php?action=rank",t3_callback);
			}
		break;
		case "t4":
			if(E("t4").innerHTML==''){
				E("t4").innerHTML='<img src="../../images/loading.gif" border="0" />'
				ajaxGet("ajax.php?action=online",t4_callback);
			}
		break;
	}
};		
pt.initTab();
pt.clickNowTab();

function t1_callback(data){
	E("t1").innerHTML=data;
}
function t2_callback(data){
	E("t2").innerHTML=data;
}
function t3_callback(data){
	E("t3").innerHTML=data;
}
function t4_callback(data){
	E("t4").innerHTML=data;
}
</script>
</body>
</html>